<div class='tour_contact'>
	<div class='title_2 cufon' style='width:280px;margin-bottom:15px;'>Đường dây nóng</div>
    <?= get_page('tour_contact')?>
</div>
<div class='tour_most_view'>
<div class='title_2 cufon' style='width:280px;margin-bottom:15px;'>
    Khách sạn xem nhiều nhất
</div>
<?
$cnt = 0;
$picture = new Picture();
$hotels = Hotel::getAllHotels();

foreach($hotels as $hotel)
{
    $cnt ++;
	if ($hotel->getthm_picture())
	{
		$picture->select($hotel->getthm_picture());
	}
	else 
	{
		$pictures = $hotel->getAllPictures();
		if ($pictures[0])
			$picture = $pictures[0];
	}
	$location = new Location();
	$location->select($hotel->getlocation());
    
	$currency = new Currency();
	$currency->select($hotel->getCurrency());
?>
    <div class='tour_most_view_item'>
    	<div style='display:inline-block;float:left;position:relative;margin-right:10px;'>
	        <a href="/khach-san-chi-tiet/<?=$hotel->getid()?>/<?=lg_string::get_link($hotel->getname())?>"><img src='<?=($picture)?($picture->getPath('tour_price_')):""?>' align="left" /></a>
            <?
			if ($hotel->getPromotion() > 0)
			{
				echo "<div class='promotion'>".$hotel->getpromotion()."<br />%</div>";
			}
			?>
        </div>
        <span>
            <div style='padding-bottom:3px;'>
                <a class='tour_most_view_title tour_title' href='/khach-san-chi-tiet/<?=$hotel->getid()?>/<?=lg_string::get_link($hotel->getname())?>'>
                    <?=$hotel->getname()?>
                </a>
            </div>
            <div style='line-height:15px;'>
            	<div><b>Giá từ : <span style='color:#c00;'><?=lg_number::money($currency->getVND($hotel->getPrice()));?> VNĐ</span></b></div>
                <b>Thành phố : <span style='color:#186BBC;'><?=($location->getname())?></span></b><br />
                <b>Địa chỉ : <span style='color:#186BBC;'><?=($hotel->getaddress())?></span></b><br />
                <span>
                	<?
					for($i=0;$i<$hotel->getstar();$i++)
					{
					?>
                    <img src='/images/star.png' vspace="5" />
                    <?
					}
                    ?>
                </span>
            </div>
            <div style='clear:both'></div>
        </span>
    </div>
<?
	if ($cnt >= 10) break;
}
?>
</div>